package com._51cto.healthy.mapper;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/****
 * @Author:DancingHorse
 * @Description:TCheckgroupMapper层
 * @Date 2022/4/14 0:12
 *****/
public interface CheckGroupMapper extends BaseMapper<CheckGroup> {
    //获取全部数据
    List<CheckGroup> queryByCodeOrName(@Param("query")String query);
    //回显id
    List<Integer> queryItemIds(@Param("id") Integer id);
    //根据检测组id删除检测项id
    void deleteItemIdsByGroup(@Param("id")Integer id);
    //插入检测项id和检测组id
    void insertItemIdWithGroup(@Param("itemId") Integer itemId, @Param("groupId")Integer groupId);
    //插入检测项id
    void insertItemId(@Param("groupId")Integer groupId,@Param("itemIds") Integer itemIds);
    //根据套餐ID查询
    List<CheckGroup> queryBySetMealId(@Param("setMealId") Integer setMealId);
}
